package com.li.test.base;

public class School {
    private Integer scnum = 100;
    private Integer thnum = 200;
    private static String scname ="天宇";
    private static String ss =null;
    static {
         ss ="123";
    }
    //内部类
    class Therch{
        private String thname="刘昊然";
        private Integer thager = 48;
        public void test(){
            test1();
            System.out.println("cc"+School.this.scnum);
            System.out.println("cc"+thnum);
            System.out.println("cc"+this.thname);
            System.out.println("cc"+thager);
        }
    }
    //静态内部类
    static class Student{
        private String ss ="ww";
        private static String ssl ="wwl";

        public void test(){
            System.out.println("hh"+scname);

        }
    }
    public void test1() {
        System.out.println("dd"+Student.ssl);
        System.out.println("dd" + this.scnum);
        System.out.println("dd" + this.thnum);
        System.out.println("dd" + this.ss);

    }

    public static void  main(String[] args){
        School sc = new School();
        Therch  th = sc.new Therch();
    th.test();
        Student st = new Student();
        st.test();



    }
}
